Unreachable code should not be part of a code base. 执行不到的代码不应当成为代码基的一部分。
Unreachable code is obviously dead, but JVMs often have more aggressive DCE policies. 不可达代码显然是死代码,但是JVM采用的DCE策略常常更激进。
Nonetheless, more often than not unreachable statements and methods are vestigial code that no longer has any purpose and can be cut from the code base with no effect. 然而,比执行不到的语句和方法更常见的是残留代码,它不再有任何作用,并且从代码基中去掉这些代码也不会产生任何影响。
To correct this warning, remove the unreachable code or verify that the constant used in the case statement is correct. 若要更正此警告,请移除无法访问的代码,或者确认在case语句中使用的常数正确无误。
Static detecting method for Unreachable Code 不可达代码的一种静态测试方法
As monitoring nodes may be unreachable and the number is very large, it is unsuitable to do code updating by traditional way through directly connected serial or parallel cables one at a time. 由于监测节点的物理不可达和节点数量巨大,传统的通过串口/并口线对单个节点进行代码更新的方式已不适应这种需求。